{
    "/api/v2/domains/{object_id}": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "Get counts and properties for domain object",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "Get domain entity info",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.BasicResponse"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        },
        "patch": {
            "description": "Updates the supported properties on the Domain entity. Supported properties: `collected`",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "Update the Domain entity",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                }
            ],
            "requestBody": {
                "description": "The patch request body for updating Domain",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/definitions/v2.DomainEntityPatch"
                        }
                    }
                }
            },
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.BasicResponse"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/computers": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the computers belonging to specified domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain computers",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/controllers": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the principals that can control this domain through ACLs",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain controllers",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/dc-syncers": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the users that can DCSync this domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain DCSyncers",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/foreign-admins": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the users outside this domain that can administer systems in this domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain foreign admins",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/foreign-gpo-controllers": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the users outside this domain that can control GPOs in this domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain foreign GPO controllers",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/foreign-groups": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the groups outside this domain that are members of groups in this domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain foreign groups",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/foreign-users": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the users outside the current domain that are members of groups in this domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain foreign users",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/gpos": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the GPOs in the domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain GPOs",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/groups": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the groups belonging to the specified domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain groups",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/inbound-trusts": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the inbound trusts for this domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain inbound trusts",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/linked-gpos": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the GPOs linked to this domain object",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain linked GPOs",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/ous": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the OUs contained by the domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain OUs",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/outbound-trusts": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the outbound trusts for this domain",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain outbound trusts",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    },
    "/api/v2/domains/{object_id}/users": {
        "parameters": [
            {
                "type": "string",
                "description": "Object ID",
                "name": "object_id",
                "in": "path",
                "required": true
            }
        ],
        "get": {
            "description": "List the users belonging to the domain specified",
            "tags": [
                "Domain Entity API",
                "Community",
                "Enterprise"
            ],
            "summary": "List domain users",
            "parameters": [
                {
                    "$ref": "#/definitions/parameters.PreferHeader"
                },
                {
                    "type": "integer",
                    "description": "Paging Skip",
                    "name": "skip",
                    "in": "query"
                },
                {
                    "type": "integer",
                    "description": "Paging Limit",
                    "name": "limit",
                    "in": "query"
                }
            ],
            "responses": {
                "200": {
                    "description": "OK",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/definitions/api.ResponseWrapper"
                            }
                        }
                    }
                },
                "Error": {
                    "$ref": "#/components/responses/defaultError"
                }
            }
        }
    }
}
